package cn.study.service.impl;

import cn.study.entity.StudyBanner;
import cn.study.mapper.StudyBannerMapper;
import cn.study.service.StudyBannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 轮播图表 服务实现类
 * </p>
 *
 * @author qiao
 * @since 2020-06-22
 */
@Service
public class StudyBannerServiceImpl extends ServiceImpl<StudyBannerMapper, StudyBanner> implements StudyBannerService {

    @Resource
    StudyBannerMapper studyBannerMapper;

    @Override
    public List<StudyBanner> getBanner(Integer id) {
        return studyBannerMapper.getBanner(id);
    }
}
